package com.example.kliven.because;

import android.content.Context;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

/**
 * Created by Kliven on 16/1/8.
 */
public class BaseActivity extends AppCompatActivity {
    private TextView snack_Bar;
    private Context context;
    @Override
    public void onCreate(Bundle savedInstanceState, PersistableBundle persistentState) {
        super.onCreate(savedInstanceState, persistentState);

        context = this;
        setContentView(R.layout.activity_base);
        snack_Bar = (TextView) findViewById(R.id.snackbar_action);
    }

    public void showSnackbar(String text){
        Snackbar.make(snack_Bar,text,Snackbar.LENGTH_LONG);
    }


}
